import { NativeModules } from 'react-native';

const { TencentCos } = NativeModules;

export default {
    async initCosServer(appId, bucket, region, cookie, signUrl, systemId) {
        return TencentCos.initCosService(appId, bucket, region, cookie, signUrl, systemId)
    },
    
    async uploadFile(localPath, targetPath) {
        return TencentCos.upload(localPath, targetPath)
    },

    async uploadFileWithName(localPath, targetPath) {
        return TencentCos.uploadWithName(localPath, targetPath)
    }
}
